package com.cry.todo.domain.project;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.cry.todo.domain.User;


@Entity
@Table(name="todo_project_user_details")
public class ProjectUserDetails implements Serializable{
	
	@Id
	@OneToOne
	private User user;
	
	@OneToOne(cascade=CascadeType.ALL)
	private ProjectSearch lastProjectSearch;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public ProjectSearch getLastProjectSearch() {
		return lastProjectSearch;
	}

	public void setLastProjectSearch(ProjectSearch lastProjectSearch) {
		this.lastProjectSearch = lastProjectSearch;
	}
}
